# 日志类
import datetime
import os


class Log:
    def __init__(self) -> None:
        pass
    # 默认存到/log目录下

    def save(self, data, name):
        pathAndName = os.path.join(os.getcwd(), 'log', name)
        with open(pathAndName, 'w') as f:
            f.write(data)
